package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.ruoyi.common.core.domain.TreeSelect;
import com.ruoyi.common.core.domain.entity.SysQuestion;

import java.util.ArrayList;
import java.util.List;

public class NaireTreeSelect {
    private List<SysQuestion> questions= new ArrayList<>();
    /** 节点ID */
    private Long id;

    /** 节点名称 */
    private String label;

    public NaireTreeSelect(TreeSelect tree){
        this.id=tree.getId();
        this.label=tree.getLabel();
    }


    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<NaireTreeSelect> children;

    public List<SysQuestion> getQuestions() {
        return questions;
    }

    public void setQuestions(List<SysQuestion> questions) {
        this.questions = questions;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public List<NaireTreeSelect> getChildren() {
        return children;
    }

    public void setChildren(List<NaireTreeSelect> children) {
        this.children = children;
    }
}
